package com.qingjiang.projectschedule.pojo.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.Getter;

import java.util.List;

@Data
public class ProjectNodeDelayReasonDTO {

    @JsonProperty("project_id")
    private String projectId;

    @JsonProperty("node_name")
    private String nodeName;

    @JsonProperty("project_name")
    private String projectName;

    @JsonProperty("yellow_node")
    private String yellowNode;

    @JsonProperty("children")
    private List<Child> children;

    @Data
    public static class Child {
        @JsonProperty("project_id")
        private String projectId;

        @JsonProperty("node_name")
        private String nodeName;

        @JsonProperty("delay_reason")
        private String delayReason;

        @JsonProperty("project_name")
        private String projectName;

        @JsonProperty("node_id")
        private String nodeId;
    }
}

